package demo02;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

public class FormatDemo {
    public static void main(String[] args) {
        //包装类型转换为基本类型:xxxValue();
    /*    Integer il = new Integer(25);
        int i2 = il.intValue();
        System.out.println(i2);
        Boolean b1 = new Boolean(true);
        boolean b2 = b1.booleanValue();
        System.out.println(b2);
        //toString
        String sex = Character.toString('男');
        String id = Integer.toString(89);
        String sex2 = "男" + "";
        String id2 = 89 + "";
        System.out.println(sex + " " + id + " " + sex2 + " " + id2);
        //所有包装类
        Integer i3 = Integer.valueOf(21);
        String str = String.valueOf("21");
        System.out.println(i3 + " " + str);
        //字符串转换相应基本类型 parseXXX()*/
        int i = Integer.parseInt("89");
        boolean flag = Boolean.parseBoolean("love");
        System.out.println(i + " " + flag);
        //自动装箱
        int i4 = 5;
        Integer i5 = i4;
        //自动拆箱
        int i6 = i5;

    }

}
